package com.greateamd.timetableasy.client.services.university;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.greateamd.timetableasy.domain.Event;
import com.greateamd.timetableasy.domain.University;

public interface UniversityServiceAsync {

	void remove(University university, AsyncCallback<Boolean> callback);
	void find(int id, AsyncCallback<University> callback);
	void findByName(String name, AsyncCallback<University> callback);
	void update(University university, AsyncCallback<Boolean> callback);
	void save(University university, AsyncCallback<Boolean> callback);
	void getAll(AsyncCallback<List<University>> callback);
	
	void getPlanning(University university, Date from, Date to, AsyncCallback<List<Event>> callback);
}
